//
//  LandMarkList.swift
//  AQDeal
//
//  Created by zhangjikuan on 2020/4/9.
//  Copyright © 2020 hsgd. All rights reserved.
//

import SwiftUI

struct LandmarkList : View {
    var body: some View {
        NavigationView {
            List(landmarkData) { landmark in
                NavigationLink(destination: LandMarkDetail(landmark: landmark)) {
                    LandmarkRow(landmark: landmark)
                 }
                }
                .navigationBarTitle(Text("Landmarks"), displayMode: .inline)
        }
        
    }
}

struct LandMarkList_Previews: PreviewProvider {
    static var previews: some View {

        LandmarkList()
    }
}
